package org.sja.log2traffic.dataStructures;

import org.sja.log2traffic.IStatusOutputer;

public class ProcessingStatusEntity {
	
	private IStatusOutputer statusOutputer;
	private String configurationName;
	private int chartsToProcess;
	
	public ProcessingStatusEntity(IStatusOutputer statusOutputer, String configurationName) {
		this.statusOutputer = statusOutputer;
		this.configurationName = configurationName;
	}
	
	public void setInitilFilesAmountToProcess(int filesToProcess){
		statusOutputer.filesProcessStatusIs(configurationName, filesToProcess);
	}	

	public void setFilesAmountToProcess(int filesToProcess){
		statusOutputer.filesProcessStatusIs(configurationName, filesToProcess);
	}	

	public void setInitilChartsAmountToProcess(int chartsToProcess){
		this.chartsToProcess = chartsToProcess;
		statusOutputer.chartsProcessStatusIs(configurationName, chartsToProcess);
	}	
	
	public void decrementChartsAmountToProcess(){
		--chartsToProcess;
		statusOutputer.chartsProcessStatusIs(configurationName, chartsToProcess);
	}	
	
}
